﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001B5 RID: 437
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeBossPhaseSettleNotify : IMessage<ChallengeBossPhaseSettleNotify>, IMessage, IEquatable<ChallengeBossPhaseSettleNotify>, IDeepCloneable<ChallengeBossPhaseSettleNotify>, IBufferMessage
	{
		// Token: 0x170005C0 RID: 1472
		// (get) Token: 0x060013B7 RID: 5047 RVA: 0x00038671 File Offset: 0x00036871
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeBossPhaseSettleNotify> Parser
		{
			get
			{
				return ChallengeBossPhaseSettleNotify._parser;
			}
		}

		// Token: 0x170005C1 RID: 1473
		// (get) Token: 0x060013B8 RID: 5048 RVA: 0x00038678 File Offset: 0x00036878
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeBossPhaseSettleNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170005C2 RID: 1474
		// (get) Token: 0x060013B9 RID: 5049 RVA: 0x0003868A File Offset: 0x0003688A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeBossPhaseSettleNotify.Descriptor;
			}
		}

		// Token: 0x060013BA RID: 5050 RVA: 0x00038691 File Offset: 0x00036891
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossPhaseSettleNotify()
		{
		}

		// Token: 0x060013BB RID: 5051 RVA: 0x000386A4 File Offset: 0x000368A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossPhaseSettleNotify(ChallengeBossPhaseSettleNotify other) : this()
		{
			this.star_ = other.star_;
			this.dBDDGFJGGGB_ = other.dBDDGFJGGGB_;
			this.isWin_ = other.isWin_;
			this.phase_ = other.phase_;
			this.battleTargetList_ = other.battleTargetList_.Clone();
			this.challengeScore_ = other.challengeScore_;
			this.scoreTwo_ = other.scoreTwo_;
			this.challengeId_ = other.challengeId_;
			this.isReward_ = other.isReward_;
			this.isRemainingAction_ = other.isRemainingAction_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060013BC RID: 5052 RVA: 0x00038745 File Offset: 0x00036945
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossPhaseSettleNotify Clone()
		{
			return new ChallengeBossPhaseSettleNotify(this);
		}

		// Token: 0x170005C3 RID: 1475
		// (get) Token: 0x060013BD RID: 5053 RVA: 0x0003874D File Offset: 0x0003694D
		// (set) Token: 0x060013BE RID: 5054 RVA: 0x00038755 File Offset: 0x00036955
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Star
		{
			get
			{
				return this.star_;
			}
			set
			{
				this.star_ = value;
			}
		}

		// Token: 0x170005C4 RID: 1476
		// (get) Token: 0x060013BF RID: 5055 RVA: 0x0003875E File Offset: 0x0003695E
		// (set) Token: 0x060013C0 RID: 5056 RVA: 0x00038766 File Offset: 0x00036966
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DBDDGFJGGGB
		{
			get
			{
				return this.dBDDGFJGGGB_;
			}
			set
			{
				this.dBDDGFJGGGB_ = value;
			}
		}

		// Token: 0x170005C5 RID: 1477
		// (get) Token: 0x060013C1 RID: 5057 RVA: 0x0003876F File Offset: 0x0003696F
		// (set) Token: 0x060013C2 RID: 5058 RVA: 0x00038777 File Offset: 0x00036977
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsWin
		{
			get
			{
				return this.isWin_;
			}
			set
			{
				this.isWin_ = value;
			}
		}

		// Token: 0x170005C6 RID: 1478
		// (get) Token: 0x060013C3 RID: 5059 RVA: 0x00038780 File Offset: 0x00036980
		// (set) Token: 0x060013C4 RID: 5060 RVA: 0x00038788 File Offset: 0x00036988
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Phase
		{
			get
			{
				return this.phase_;
			}
			set
			{
				this.phase_ = value;
			}
		}

		// Token: 0x170005C7 RID: 1479
		// (get) Token: 0x060013C5 RID: 5061 RVA: 0x00038791 File Offset: 0x00036991
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<BattleTarget> BattleTargetList
		{
			get
			{
				return this.battleTargetList_;
			}
		}

		// Token: 0x170005C8 RID: 1480
		// (get) Token: 0x060013C6 RID: 5062 RVA: 0x00038799 File Offset: 0x00036999
		// (set) Token: 0x060013C7 RID: 5063 RVA: 0x000387A1 File Offset: 0x000369A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeScore
		{
			get
			{
				return this.challengeScore_;
			}
			set
			{
				this.challengeScore_ = value;
			}
		}

		// Token: 0x170005C9 RID: 1481
		// (get) Token: 0x060013C8 RID: 5064 RVA: 0x000387AA File Offset: 0x000369AA
		// (set) Token: 0x060013C9 RID: 5065 RVA: 0x000387B2 File Offset: 0x000369B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScoreTwo
		{
			get
			{
				return this.scoreTwo_;
			}
			set
			{
				this.scoreTwo_ = value;
			}
		}

		// Token: 0x170005CA RID: 1482
		// (get) Token: 0x060013CA RID: 5066 RVA: 0x000387BB File Offset: 0x000369BB
		// (set) Token: 0x060013CB RID: 5067 RVA: 0x000387C3 File Offset: 0x000369C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeId
		{
			get
			{
				return this.challengeId_;
			}
			set
			{
				this.challengeId_ = value;
			}
		}

		// Token: 0x170005CB RID: 1483
		// (get) Token: 0x060013CC RID: 5068 RVA: 0x000387CC File Offset: 0x000369CC
		// (set) Token: 0x060013CD RID: 5069 RVA: 0x000387D4 File Offset: 0x000369D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsReward
		{
			get
			{
				return this.isReward_;
			}
			set
			{
				this.isReward_ = value;
			}
		}

		// Token: 0x170005CC RID: 1484
		// (get) Token: 0x060013CE RID: 5070 RVA: 0x000387DD File Offset: 0x000369DD
		// (set) Token: 0x060013CF RID: 5071 RVA: 0x000387E5 File Offset: 0x000369E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsRemainingAction
		{
			get
			{
				return this.isRemainingAction_;
			}
			set
			{
				this.isRemainingAction_ = value;
			}
		}

		// Token: 0x060013D0 RID: 5072 RVA: 0x000387EE File Offset: 0x000369EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeBossPhaseSettleNotify);
		}

		// Token: 0x060013D1 RID: 5073 RVA: 0x000387FC File Offset: 0x000369FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeBossPhaseSettleNotify other)
		{
			return other != null && (other == this || (this.Star == other.Star && this.DBDDGFJGGGB == other.DBDDGFJGGGB && this.IsWin == other.IsWin && this.Phase == other.Phase && this.battleTargetList_.Equals(other.battleTargetList_) && this.ChallengeScore == other.ChallengeScore && this.ScoreTwo == other.ScoreTwo && this.ChallengeId == other.ChallengeId && this.IsReward == other.IsReward && this.IsRemainingAction == other.IsRemainingAction && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060013D2 RID: 5074 RVA: 0x000388CC File Offset: 0x00036ACC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Star != 0U)
			{
				num ^= this.Star.GetHashCode();
			}
			if (this.DBDDGFJGGGB != 0U)
			{
				num ^= this.DBDDGFJGGGB.GetHashCode();
			}
			if (this.IsWin)
			{
				num ^= this.IsWin.GetHashCode();
			}
			if (this.Phase != 0U)
			{
				num ^= this.Phase.GetHashCode();
			}
			num ^= this.battleTargetList_.GetHashCode();
			if (this.ChallengeScore != 0U)
			{
				num ^= this.ChallengeScore.GetHashCode();
			}
			if (this.ScoreTwo != 0U)
			{
				num ^= this.ScoreTwo.GetHashCode();
			}
			if (this.ChallengeId != 0U)
			{
				num ^= this.ChallengeId.GetHashCode();
			}
			if (this.IsReward)
			{
				num ^= this.IsReward.GetHashCode();
			}
			if (this.IsRemainingAction)
			{
				num ^= this.IsRemainingAction.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060013D3 RID: 5075 RVA: 0x000389E1 File Offset: 0x00036BE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060013D4 RID: 5076 RVA: 0x000389E9 File Offset: 0x00036BE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060013D5 RID: 5077 RVA: 0x000389F4 File Offset: 0x00036BF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsWin)
			{
				output.WriteRawTag(32);
				output.WriteBool(this.IsWin);
			}
			if (this.ChallengeId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.ChallengeId);
			}
			if (this.IsReward)
			{
				output.WriteRawTag(48);
				output.WriteBool(this.IsReward);
			}
			if (this.ChallengeScore != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.ChallengeScore);
			}
			this.battleTargetList_.WriteTo(ref output, ChallengeBossPhaseSettleNotify._repeated_battleTargetList_codec);
			if (this.DBDDGFJGGGB != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.DBDDGFJGGGB);
			}
			if (this.Phase != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Phase);
			}
			if (this.ScoreTwo != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.ScoreTwo);
			}
			if (this.IsRemainingAction)
			{
				output.WriteRawTag(112);
				output.WriteBool(this.IsRemainingAction);
			}
			if (this.Star != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Star);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060013D6 RID: 5078 RVA: 0x00038B24 File Offset: 0x00036D24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Star != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Star);
			}
			if (this.DBDDGFJGGGB != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DBDDGFJGGGB);
			}
			if (this.IsWin)
			{
				num += 2;
			}
			if (this.Phase != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Phase);
			}
			num += this.battleTargetList_.CalculateSize(ChallengeBossPhaseSettleNotify._repeated_battleTargetList_codec);
			if (this.ChallengeScore != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeScore);
			}
			if (this.ScoreTwo != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScoreTwo);
			}
			if (this.ChallengeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeId);
			}
			if (this.IsReward)
			{
				num += 2;
			}
			if (this.IsRemainingAction)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060013D7 RID: 5079 RVA: 0x00038C14 File Offset: 0x00036E14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeBossPhaseSettleNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Star != 0U)
			{
				this.Star = other.Star;
			}
			if (other.DBDDGFJGGGB != 0U)
			{
				this.DBDDGFJGGGB = other.DBDDGFJGGGB;
			}
			if (other.IsWin)
			{
				this.IsWin = other.IsWin;
			}
			if (other.Phase != 0U)
			{
				this.Phase = other.Phase;
			}
			this.battleTargetList_.Add(other.battleTargetList_);
			if (other.ChallengeScore != 0U)
			{
				this.ChallengeScore = other.ChallengeScore;
			}
			if (other.ScoreTwo != 0U)
			{
				this.ScoreTwo = other.ScoreTwo;
			}
			if (other.ChallengeId != 0U)
			{
				this.ChallengeId = other.ChallengeId;
			}
			if (other.IsReward)
			{
				this.IsReward = other.IsReward;
			}
			if (other.IsRemainingAction)
			{
				this.IsRemainingAction = other.IsRemainingAction;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060013D8 RID: 5080 RVA: 0x00038D01 File Offset: 0x00036F01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060013D9 RID: 5081 RVA: 0x00038D0C File Offset: 0x00036F0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 82U)
				{
					if (num <= 40U)
					{
						if (num == 32U)
						{
							this.IsWin = input.ReadBool();
							continue;
						}
						if (num == 40U)
						{
							this.ChallengeId = input.ReadUInt32();
							continue;
						}
					}
					else
					{
						if (num == 48U)
						{
							this.IsReward = input.ReadBool();
							continue;
						}
						if (num == 72U)
						{
							this.ChallengeScore = input.ReadUInt32();
							continue;
						}
						if (num == 82U)
						{
							this.battleTargetList_.AddEntriesFrom(ref input, ChallengeBossPhaseSettleNotify._repeated_battleTargetList_codec);
							continue;
						}
					}
				}
				else if (num <= 96U)
				{
					if (num == 88U)
					{
						this.DBDDGFJGGGB = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.Phase = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.ScoreTwo = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.IsRemainingAction = input.ReadBool();
						continue;
					}
					if (num == 120U)
					{
						this.Star = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000824 RID: 2084
		private static readonly MessageParser<ChallengeBossPhaseSettleNotify> _parser = new MessageParser<ChallengeBossPhaseSettleNotify>(() => new ChallengeBossPhaseSettleNotify());

		// Token: 0x04000825 RID: 2085
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000826 RID: 2086
		public const int StarFieldNumber = 15;

		// Token: 0x04000827 RID: 2087
		private uint star_;

		// Token: 0x04000828 RID: 2088
		public const int DBDDGFJGGGBFieldNumber = 11;

		// Token: 0x04000829 RID: 2089
		private uint dBDDGFJGGGB_;

		// Token: 0x0400082A RID: 2090
		public const int IsWinFieldNumber = 4;

		// Token: 0x0400082B RID: 2091
		private bool isWin_;

		// Token: 0x0400082C RID: 2092
		public const int PhaseFieldNumber = 12;

		// Token: 0x0400082D RID: 2093
		private uint phase_;

		// Token: 0x0400082E RID: 2094
		public const int BattleTargetListFieldNumber = 10;

		// Token: 0x0400082F RID: 2095
		private static readonly FieldCodec<BattleTarget> _repeated_battleTargetList_codec = FieldCodec.ForMessage<BattleTarget>(82U, BattleTarget.Parser);

		// Token: 0x04000830 RID: 2096
		private readonly RepeatedField<BattleTarget> battleTargetList_ = new RepeatedField<BattleTarget>();

		// Token: 0x04000831 RID: 2097
		public const int ChallengeScoreFieldNumber = 9;

		// Token: 0x04000832 RID: 2098
		private uint challengeScore_;

		// Token: 0x04000833 RID: 2099
		public const int ScoreTwoFieldNumber = 13;

		// Token: 0x04000834 RID: 2100
		private uint scoreTwo_;

		// Token: 0x04000835 RID: 2101
		public const int ChallengeIdFieldNumber = 5;

		// Token: 0x04000836 RID: 2102
		private uint challengeId_;

		// Token: 0x04000837 RID: 2103
		public const int IsRewardFieldNumber = 6;

		// Token: 0x04000838 RID: 2104
		private bool isReward_;

		// Token: 0x04000839 RID: 2105
		public const int IsRemainingActionFieldNumber = 14;

		// Token: 0x0400083A RID: 2106
		private bool isRemainingAction_;
	}
}
